package com.w.wx.mapper;

import com.w.wx.domain.Notice;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface NoticeMapper {

    int deleteByPrimaryKey(Integer mid);

    int insert(Notice record);

    Notice selectByPrimaryKey(Integer mid);

    ArrayList<Notice> selectAll();

    int updateByPrimaryKey(Notice record);

    Notice selectByGid(Integer gid);

    ArrayList<Notice> selectByOpenid(String openid);

    ArrayList<Notice> selectByOpenid1(String openid,String liked);

    int deleteByOpenid(String openid);

    int deleteByOpenid1(String openid);

    Notice selectByTwoOpenid( String openid);
}